<?php
$objRequest 		= $this->_request;
$strController 		= $objRequest->getControllerName();
$strAction 			= $objRequest->getActionName();
$AppUI				= Zend_Registry::get('AppUI');
$objCache			= Zend_Registry::get('objCache');
$variable			= Ecore_Function::json('variable');
$strFileHeader		= ROOT_DIR . '/frontend/' . MOD_NAME . '/controllers/common/' . $strController . '.header.php';
$strLocale			= ROOT_DIR  . '/locale/' . MOD_NAME . '/' . $strController . '.php';	
$strLocaleCom		= ROOT_DIR  . '/locale/' . MOD_NAME . '/common.php';	
if(file_exists($strFileHeader)) {	
	include_once($strFileHeader);
	if(isset($arrJS)) {		
		$strLocaleFile	= LOCALE_FOLDER . $strController . '.js';	
		$strLocalePath	= HOST_LOCALE . $strController . '.js';			
		if(file_exists($strLocaleFile)) array_unshift($arrJS, $strLocalePath);
	}	
}
if(file_exists($strLocaleCom)) {
	include_once($strLocaleCom);
}
if(file_exists($strLocale)) {
	include_once($strLocale);
}
$this->view->ROOT_DIR 		= ROOT_DIR;
$this->view->strController 	= $strController;
$this->view->strAction 		= $strAction;
$this->view->arrCSS 		= isset($arrCSS) ? $arrCSS : null;
$this->view->arrJS 			= isset($arrJS) ? $arrJS : null;
$this->view->strMsg			= Ecore_Function::getMsg();
$this->view->strError		= Ecore_Function::getError();
$this->view->browser		= Ecore_Function::getBrowser();
$this->view->arrLocale		= isset($arrLocale) ? $arrLocale : null;
$this->view->variable	 	= $variable;
$this->view->arrSmarty	 	= isset($arrSmarty) ? $arrSmarty : null;